package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 标签分类信息表，存储已发布的文章
 */

@Data
@TableName("article_category")
public class Category implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;


    private String name;


    private int level;


    private Long parentId;


    @TableField("gmt_created")
    private Date createdTime;

}